// 表格的数据（单据的表头）
const state = {
  dataList: [
    {
      id: '1',
      value: '',
      type: 'TextEdit',
      label: '单据号',
      disabled: true
    },
    {
      id: '2',
      value: 1,
      w: 100,
      type: 'LookUpEdit',
      label: '单据状态',
      disabled: true,
      list: [
        { value: 1, label: '录入' },
        { value: 0, label: '手输' }
      ]
    },
    {
      id: '3',
      value: '',
      type: 'TextEdit',
      label: '预订单单号',
      disabled: true
    },
    {
      id: '4',
      value: '',
      type: 'CheckEdit',
      label: '是否现场收款'
    },
    {
      id: '5',
      value: '',
      required: true,
      type: 'ButtonEdit',
      label: '会员',
      modalType: 'memo'
    },
    {
      id: '6',
      value: '',
      required: true,
      type: 'ButtonEdit',
      label: '预定门店',
      modalType: 'shop'
    },
    {
      id: '7',
      value: '',
      type: 'ButtonEdit',
      label: '取货门店',
      modalType: 'shop'
    },
    {
      id: '8',
      value: '',
      required: true,
      type: 'TextEdit',
      label: '收货手机'
    },
    {
      id: '9',
      value: '',
      type: 'TextEdit',
      required: true,
      label: '收货人姓名'
    },
    {
      id: '10',
      value: '1',
      w: 120,
      type: 'LookUpEdit',
      label: '安装要求',
      list: [
        { value: '1', label: '厂家安装' },
        { value: '2', label: '门店安装' }
      ]
    }
  ]
}

const mutations = {
  changeDataList (state, payLoad) {
    state.dataList = payLoad
  }
}

export default {
  state,
  mutations
}
